package AInventory;

public class Toy {
	private String name;
	private double price;
	private int available;

	public Toy(String name, double price, int available) {
		this.name = name;
		this.price = price;
		this.available = available;
	}
	public String toString(){
		return this.name+" "+this.price+" "+this.available;
	}
	public String getName() {
		return name;
	}
	public double getPrice() {
		return price;
	}
	public int getAvailable() {
		return available;
	}
	public boolean sameName(String name){
		return this.name.equals(name);
	}
	public boolean getPriceBellow(double that){
		return this.price<that;
	}

}
